home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16453 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  577 b 

  1. Path: mozo.cc.purdue.edu!news
  2. From: Aria Prima Novianto <aria@cs.purdue.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Array Initialization: C to C++
  5. Date: 10 Apr 1996 17:55:33 -0500
  6. Organization: Purdue University Department of Computer Sciences
  7. Sender: aria@al-masjid.cs.purdue.edu
  8. Message-ID: <m1ivf7heoq.fsf@al-masjid.cs.purdue.edu>
  9. NNTP-Posting-Host: apollo.cs.purdue.edu
  10. X-Newsreader: Gnus v5.0.15
  11.  
  12.  
  13. Hi, any of you know how to do this in C++.
  14.  
  15. int array[] = { ['a'] = 1, ['b'] = 2 };
  16.  
  17. It compiled fine using gcc, but not g++.
  18. It gave me parse error before '='.
  19.  
  20. Thanks,
  21. Aria
  22.   
  23.